package com.oracle.oa.util;

import java.util.ArrayList;
import java.util.List;

public class PageBean2 {
	private int currentPage=1;
	private int pageSize=2;
	
	private int totalPage;
	private int allRows;
	
	public List list=new ArrayList();

	public int getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getTotalPage() {
		return allRows%pageSize==0?allRows/pageSize:allRows/pageSize+1;
	}

	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}

	public int getAllRows() {
		return allRows;
	}

	public void setAllRows(int allRows) {
		this.allRows = allRows;
	}

	public List getList() {
		return list;
	}

	public void setList(List list) {
		this.list = list;
	}
}
